OVERVIEW

The code in this replication package replicates the empirical analysis in the article \'93Smoke and Mirrors: Strategic Messaging and the Politics of Noncompliance,\'94 by Julia Morse and Tyler Pratt.  The script SmokeMirrors_Replication.R includes all of the code to generate the figures and tables in the main text and supplementary materials.  The code should take less than five minutes to run.

TABLE OF CONTENTS

1.SmokeMirrors_Codebook.docx is a codebook that defines the variables included in the three data files.

2. SmokeMirrors_Replication.R is an R script that reproduces the empirical results in the main text and appendix.

3. SmokeMirrors_Appendix.pdf includes the supplementary tables and figures for the article.

4. Data Files include the following three datasets
	- Public_Aug2024.csv includes responses to an August 2024 survey of the US public.
	- Elite_Nov2024.csv includes responses to a November 2024 survey of diplomatic elites
	- Public_Nov2023.csv includes responses to an earlier, November 2023 survey of the US public.

INSTRUCTIONS FOR RUNNING THE CODE

To replicate the results, open the script SmokeMirrors_Replication.R in R and set the working directory to the data folder.  The code will produce each figure and table from the article in the order they appear in the main text and appendix.  Each figure and table is identified with comments in the script.


SOFTWARE DEPENDENCIES

The analysis was conducted on a MacBook running macOS 15.2, using R version 4.3.1.  Installed packages used during the analysis include:
	- ggplot2_3.4.3
	- dplyr_1.1.3
	- stargazer_5.2.1
	- sandwich_3.0-2
	- lmtest_0.9-40